// 列表
const tableConfig = {
  stripe: true,
  border: true,
  maxHeight: '80vh',
  columns: [
    { label: '姓名', prop: 'name' },
    { label: '证件号码', prop: 'idCard' },
    {
      label: '性别',
      prop: 'gender',
      code: 'GENDER',
    },
    { label: '联系方式', prop: 'phone' },
    { label: '申请时间', prop: 'createTime' },
    { label: '审批原因备注', prop: 'approveRemark' },
    {
      label: '审批状态', prop: 'approveStatus',
      custome: 'tag',
      dicData: [
        { label: '待审批', value: 0, type: 'warning' },
        { label: '已审批', value: 1, type: 'success' },
        { label: '已撤销', value: 2, type: 'info', },
      ]
    },
    {
      label: '审批结果', prop: 'approveResult',
      custome: 'tag',
      dicData: [
        { label: '驳回', value: 0, type: 'danger' },
        { label: '通过', value: 1, type: 'success' },
      ]
    },
    { label: '驳回原因备注', prop: 'rejectRemark' },
    {
      label: '操作',
      prop: 'menu',
      width: 300,
      fixed: 'right',
    },
  ],
}

export const baseConfig = {
  pageName: '指静脉采集审核',
  // 数据字典
  dictcodes: ['GENDER'],//逗号分隔字符串
  rowKey: 'id',//唯一标识
  addLabel: '新增',
  // 删除插入
  // tipLabel: '',//展示名称字段
  // exportMqTopic: '',//导出标识
  api: {
    index: 'view_iccVeinApprove_page',
    // export: '',
    // delete: '',
    // add: '',
    // edit: '',
  },
  auth: {
    index: 'view_iccVeinApprove_page',
    // export: '',
    // delete: '',
    // add: '',
    // edit: '',
    // 批量搜索
    // mulitSet: 'mulitSet',
  },
  paramsObj: {},//默认传参
  // 当前行操作按钮
  menuBtn: [
    // {
    //   icon: 'detail',
    //   label: '详情',
    //   type: 'primary',
    //   operate: 'Detial',
    //   auth: '',
    //   text: true,
    //   show: true,
    // },
  ],
  dialogConfig: {
    width: '55%',
  },
  // 搜索
  searchConfig: {
    inline: true,
    showBtn: true,
    labelPosition: 'left',
    column: [
      {
        label: '姓名',
        prop: 'name',
        type: 'input',
        span: 6,
      },
      {
        label: '性别',
        prop: 'gender',
        propName: 'genderLabel',
        type: 'remoteSelect',
        api: 'getDictItemList',
        code: 'GENDER',
        span: 6,
      },
      {
        label: '联系方式',
        prop: 'phone',
        type: 'input',
        span: 6,
      },
      {
        label: '证件号码',
        prop: 'idCard',
        type: 'input',
        span: 6,
      },
      {
        label: '审批状态',
        prop: 'approveStatus',
        type: 'select',
        dicData: [
          { label: '待审批', value: 0 },
          { label: '已审批', value: 1 },
          { label: '已撤销', value: 2 },
        ],
        span: 6,
      },
      {
        label: '审批结果',
        prop: 'approveResult',
        type: 'select',
        dicData: [
          { label: '驳回', value: 0 },
          { label: '通过', value: 1 },
        ],
        span: 6,
      },
      {
        label: '申请时间',
        prop: 'createTimeBetween',
        type: 'dateBetween',
        dateType: 'datetimerange',
        span: 12,
        format: 'YYYY年MM月DD日 HH:mm:ss',
        valueFormat: 'YYYY-MM-DD HH:mm:ss',
      },
    ],
  },
  tableConfig,
}